# if __name__ == '__main__' 用法
# https://www.cnblogs.com/cnhyk/p/12410958.html
# https://www.cnblogs.com/chuqianyu/p/14227392.html
import requests

if __name__ == "__main__":
    url = "https://www.sogou.com/"
    response = requests.get(url=url)
    responseText = response.text
    print(responseText)
    with open("./file/sogou.html", "w", encoding="utf-8") as fp:
        fp.write(responseText)
    print("爬取数据接收！！！")
